package com.star.uc.infras.repository.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.star.common.orm.contract.entity.BasePO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

/**
 * 第三方登录映射用户信息(UserOuterMapperInfo)表实体类
 *
 * @author 周恒哲
 * @since 2023-10-18 14:21:52
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = true)
@TableName("user_outer_mapper_info")
public class UserOuterMapperInfoPO extends BasePO {
    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    private String uid;
    /**
     * 登录类型
     */
    @Schema(description = "登录类型")
    private String loginType;
    /**
     * 第三方登录ID,手机号，邮箱等
     */
    @Schema(description = "第三方登录ID")
    private String identifier;
    /**
     * 国家区号
     */
    @Schema(description = "国家区号")
    private String countryCode;

    /**
     * 密码， (自建账号的保存密码)
     */
    @Schema(description = "密码")
    private String credential;

    /**
     * 加盐
     */
    @Schema(description = "加盐")
    private String salt;

    public static final String UID = "uid";
    public static final String LOGIN_TYPE = "login_type";
    public static final String IDENTIFIER = "identifier";
    public static final String APPLICATION_ID = "application_id";
    public static final String DELETE_FLAG = "delete_flag";
    public static final String COUNTRY_CODE = "country_code";
    public static final String CREDENTIAL = "credential";
    public static final String SALT = "salt";

}

